package org.jeecg.modules.achexampaperquestionsitem.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.achexampaperquestionsitem.entity.AchExamPaperQuestionsItem;
import org.jeecg.modules.achexampaperquestionsitem.mapper.AchExamPaperQuestionsItemMapper;
import org.jeecg.modules.achexampaperquestionsitem.service.IAchExamPaperQuestionsItemService;
import org.jeecg.modules.achexampaperquestionsitem.vo.AchExamPaperQuestionsItemVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * @Description: ach_exam_paper_questions_item
 * @author: baochangrong
 * @Date:   2022-03-18
 * @Version: V1.0
 */
@Service
public class AchExamPaperQuestionsItemServiceImpl extends ServiceImpl<AchExamPaperQuestionsItemMapper, AchExamPaperQuestionsItem> implements IAchExamPaperQuestionsItemService {

    @Autowired
    AchExamPaperQuestionsItemMapper achExamPaperQuestionsItemMapper;

    /** 全部查询 附带关联名称 voList */
    @Override
    public IPage<AchExamPaperQuestionsItemVo> voList(Page<AchExamPaperQuestionsItemVo> page,@Param("achExamPaperQuestionsItemVo") AchExamPaperQuestionsItemVo achExamPaperQuestionsItemVo){
        List<AchExamPaperQuestionsItemVo> achExamPaperQuestionsItemVoList = achExamPaperQuestionsItemMapper.voList(page, achExamPaperQuestionsItemVo);
        return page.setRecords(achExamPaperQuestionsItemVoList);
    }

}
